<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: D:/Home/MFF/1-Mgr/projekt/pepr3d/src/tools/Tool.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_tool_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Tool.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;optional&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;cinder/Ray.h&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;cinder/app/MouseEvent.h&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;geometry/TrianglePrimitive.h&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;ui/Hotkeys.h&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacepepr3d.html">pepr3d</a> {</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">class </span>MainApplication;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">class </span>SidePane;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">class </span>ModelView;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html">   18</a></span>&#160;<span class="keyword">class </span><a class="code" href="classpepr3d_1_1_tool.html">Tool</a> {</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="classpepr3d_1_1_tool.html">Tool</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classpepr3d_1_1_tool.html">Tool</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="keyword">virtual</span> std::string <a class="code" href="classpepr3d_1_1_tool.html#a5706faac1c122203317c60b3eb231d1a">getName</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#a331bbb48707ea07c472b7634b02e1a18">   27</a></span>&#160;    <span class="keyword">virtual</span> std::string <a class="code" href="classpepr3d_1_1_tool.html#a331bbb48707ea07c472b7634b02e1a18">getDescription</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    }</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#a2b3b7279f6a942a99c11c9495b3a3d84">   33</a></span>&#160;    <span class="keyword">virtual</span> std::optional&lt;Hotkey&gt; <a class="code" href="classpepr3d_1_1_tool.html#a2b3b7279f6a942a99c11c9495b3a3d84">getHotkey</a>(<span class="keyword">const</span> <a class="code" href="classpepr3d_1_1_hotkeys.html">Hotkeys</a>&amp; hotkeys)<span class="keyword"> const </span>{</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="keywordflow">return</span> {};</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keyword">virtual</span> std::string <a class="code" href="classpepr3d_1_1_tool.html#a068b3420aff7edd507e3348c6d83c383">getIcon</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#aae323508b6d824047abc981e10a42c0f">   42</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_tool.html#aae323508b6d824047abc981e10a42c0f">isEnabled</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    };</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#a07eac1be4dee577eec8c865390e8277d">   48</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#a07eac1be4dee577eec8c865390e8277d">drawToSidePane</a>(<a class="code" href="classpepr3d_1_1_side_pane.html">SidePane</a>&amp; sidePane){};</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#a7278925cff7d0da94e54f9bca201bda7">   52</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#a7278925cff7d0da94e54f9bca201bda7">drawToModelView</a>(<a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>&amp; modelView){};</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#aaa49ecd05152b869571601c7741fc5ca">   55</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#aaa49ecd05152b869571601c7741fc5ca">onModelViewMouseDown</a>(<a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>&amp; modelView, ci::app::MouseEvent event){};</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#a56cc05810dfb90d78b0c1388f710a445">   58</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#a56cc05810dfb90d78b0c1388f710a445">onModelViewMouseDrag</a>(<a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>&amp; modelView, ci::app::MouseEvent event){};</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#a3d6d4e593753eba998b2a6d6fb49c5af">   61</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#a3d6d4e593753eba998b2a6d6fb49c5af">onModelViewMouseUp</a>(<a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>&amp; modelView, ci::app::MouseEvent event){};</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#aa1aae7ecebb6d2e63dfa61d08ff022ae">   64</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#aa1aae7ecebb6d2e63dfa61d08ff022ae">onModelViewMouseWheel</a>(<a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>&amp; modelView, ci::app::MouseEvent event){};</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#a25a3db1cbb37241f473e009ac702d867">   68</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#a25a3db1cbb37241f473e009ac702d867">onModelViewMouseMove</a>(<a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>&amp; modelView, ci::app::MouseEvent event){};</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#a139c1e72bd9eada36ce660e1fbf10c6b">   72</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#a139c1e72bd9eada36ce660e1fbf10c6b">onToolSelect</a>(<a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>&amp; modelView){};</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#aafba698d859abbc2b1dc48a38ca24d36">   76</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#aafba698d859abbc2b1dc48a38ca24d36">onToolDeselect</a>(<a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>&amp; modelView){};</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_tool.html#ac94e48ba121b7f4e4bf897de871ad479">   79</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_tool.html#ac94e48ba121b7f4e4bf897de871ad479">onNewGeometryLoaded</a>(<a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>&amp; modelView){};</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keyword">virtual</span> std::optional&lt;std::size_t&gt; <a class="code" href="classpepr3d_1_1_tool.html#a2420df1e8a95c66a882a923158084020">safeIntersectMesh</a>(<a class="code" href="classpepr3d_1_1_main_application.html">MainApplication</a>&amp; mainApplication, <span class="keyword">const</span> ci::Ray ray) <span class="keyword">final</span>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keyword">virtual</span> std::optional&lt;DetailedTriangleId&gt; <a class="code" href="classpepr3d_1_1_tool.html#a2645ac765f26cbda2ab9c818a362912f">safeIntersectDetailedMesh</a>(<a class="code" href="classpepr3d_1_1_main_application.html">MainApplication</a>&amp; mainApplication,</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                                                                        <span class="keyword">const</span> ci::Ray ray) <span class="keyword">final</span>;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> safeComputeSdf(<a class="code" href="classpepr3d_1_1_main_application.html">MainApplication</a>&amp; mainApplication) <span class="keyword">final</span>;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;};</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;}  <span class="comment">// namespace pepr3d</span></div><div class="ttc" id="classpepr3d_1_1_tool_html_aafba698d859abbc2b1dc48a38ca24d36"><div class="ttname"><a href="classpepr3d_1_1_tool.html#aafba698d859abbc2b1dc48a38ca24d36">pepr3d::Tool::onToolDeselect</a></div><div class="ttdeci">virtual void onToolDeselect(ModelView &amp;modelView)</div><div class="ttdoc">Called on a Tool right after user selects another tool. Note: It may also be called when a user selec...</div><div class="ttdef"><b>Definition:</b> Tool.h:76</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a068b3420aff7edd507e3348c6d83c383"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a068b3420aff7edd507e3348c6d83c383">pepr3d::Tool::getIcon</a></div><div class="ttdeci">virtual std::string getIcon() const =0</div><div class="ttdoc">Returns a UTF-8 icon from an icon font.</div></div>
<div class="ttc" id="namespacepepr3d_html"><div class="ttname"><a href="namespacepepr3d.html">pepr3d</a></div><div class="ttdoc">Fix for CGAL bugs in polygon with holes verification Contained in CGAL PR #3688, likely to be in 4....</div><div class="ttdef"><b>Definition:</b> CmdColorManager.h:9</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a2645ac765f26cbda2ab9c818a362912f"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a2645ac765f26cbda2ab9c818a362912f">pepr3d::Tool::safeIntersectDetailedMesh</a></div><div class="ttdeci">virtual std::optional&lt; DetailedTriangleId &gt; safeIntersectDetailedMesh(MainApplication &amp;mainApplication, const ci::Ray ray) final</div><div class="ttdoc">Returns an optional intersection (DetailedTriangleId) of a ci::Ray with current Geometry....</div><div class="ttdef"><b>Definition:</b> Tool.cpp:31</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a331bbb48707ea07c472b7634b02e1a18"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a331bbb48707ea07c472b7634b02e1a18">pepr3d::Tool::getDescription</a></div><div class="ttdeci">virtual std::string getDescription() const</div><div class="ttdoc">Returns a description, displayed e.g., in a tooltip.</div><div class="ttdef"><b>Definition:</b> Tool.h:27</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a56cc05810dfb90d78b0c1388f710a445"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a56cc05810dfb90d78b0c1388f710a445">pepr3d::Tool::onModelViewMouseDrag</a></div><div class="ttdeci">virtual void onModelViewMouseDrag(ModelView &amp;modelView, ci::app::MouseEvent event)</div><div class="ttdoc">Called on a currently active Tool when users drags a mouse button over a ModelView.</div><div class="ttdef"><b>Definition:</b> Tool.h:58</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_ac94e48ba121b7f4e4bf897de871ad479"><div class="ttname"><a href="classpepr3d_1_1_tool.html#ac94e48ba121b7f4e4bf897de871ad479">pepr3d::Tool::onNewGeometryLoaded</a></div><div class="ttdeci">virtual void onNewGeometryLoaded(ModelView &amp;modelView)</div><div class="ttdoc">Called on EVERY Tool right after a new Geometry is loaded or imported.</div><div class="ttdef"><b>Definition:</b> Tool.h:79</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a2420df1e8a95c66a882a923158084020"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a2420df1e8a95c66a882a923158084020">pepr3d::Tool::safeIntersectMesh</a></div><div class="ttdeci">virtual std::optional&lt; std::size_t &gt; safeIntersectMesh(MainApplication &amp;mainApplication, const ci::Ray ray) final</div><div class="ttdoc">Returns an optional intersection (an index of a triangle) of a ci::Ray with current Geometry....</div><div class="ttdef"><b>Definition:</b> Tool.cpp:17</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_aae323508b6d824047abc981e10a42c0f"><div class="ttname"><a href="classpepr3d_1_1_tool.html#aae323508b6d824047abc981e10a42c0f">pepr3d::Tool::isEnabled</a></div><div class="ttdeci">virtual bool isEnabled() const</div><div class="ttdoc">Returns true if enabled and can be selected, otherwise false. This should be a fast method,...</div><div class="ttdef"><b>Definition:</b> Tool.h:42</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html"><div class="ttname"><a href="classpepr3d_1_1_tool.html">pepr3d::Tool</a></div><div class="ttdoc">A base class of all tools that the user can select and manipulate the Geometry and application with t...</div><div class="ttdef"><b>Definition:</b> Tool.h:18</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a3d6d4e593753eba998b2a6d6fb49c5af"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a3d6d4e593753eba998b2a6d6fb49c5af">pepr3d::Tool::onModelViewMouseUp</a></div><div class="ttdeci">virtual void onModelViewMouseUp(ModelView &amp;modelView, ci::app::MouseEvent event)</div><div class="ttdoc">Called on a currently active Tool when users releases a mouse button over a ModelView.</div><div class="ttdef"><b>Definition:</b> Tool.h:61</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_aa1aae7ecebb6d2e63dfa61d08ff022ae"><div class="ttname"><a href="classpepr3d_1_1_tool.html#aa1aae7ecebb6d2e63dfa61d08ff022ae">pepr3d::Tool::onModelViewMouseWheel</a></div><div class="ttdeci">virtual void onModelViewMouseWheel(ModelView &amp;modelView, ci::app::MouseEvent event)</div><div class="ttdoc">Called on a currently active Tool when users scrolls mouse wheel over a ModelView.</div><div class="ttdef"><b>Definition:</b> Tool.h:64</div></div>
<div class="ttc" id="classpepr3d_1_1_hotkeys_html"><div class="ttname"><a href="classpepr3d_1_1_hotkeys.html">pepr3d::Hotkeys</a></div><div class="ttdoc">All hotkeys and their corresponding actions.</div><div class="ttdef"><b>Definition:</b> Hotkeys.h:176</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html"><div class="ttname"><a href="classpepr3d_1_1_model_view.html">pepr3d::ModelView</a></div><div class="ttdoc">The main part of the user interface, shows the geometry to the user.</div><div class="ttdef"><b>Definition:</b> ModelView.h:19</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a25a3db1cbb37241f473e009ac702d867"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a25a3db1cbb37241f473e009ac702d867">pepr3d::Tool::onModelViewMouseMove</a></div><div class="ttdeci">virtual void onModelViewMouseMove(ModelView &amp;modelView, ci::app::MouseEvent event)</div><div class="ttdoc">Called on a currently active Tool when users moves mouse cursor over a ModelView. Note: This method i...</div><div class="ttdef"><b>Definition:</b> Tool.h:68</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a07eac1be4dee577eec8c865390e8277d"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a07eac1be4dee577eec8c865390e8277d">pepr3d::Tool::drawToSidePane</a></div><div class="ttdeci">virtual void drawToSidePane(SidePane &amp;sidePane)</div><div class="ttdoc">Called every frame on a currently active Tool. Draw to SidePane from inside this method.</div><div class="ttdef"><b>Definition:</b> Tool.h:48</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a2b3b7279f6a942a99c11c9495b3a3d84"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a2b3b7279f6a942a99c11c9495b3a3d84">pepr3d::Tool::getHotkey</a></div><div class="ttdeci">virtual std::optional&lt; Hotkey &gt; getHotkey(const Hotkeys &amp;hotkeys) const</div><div class="ttdoc">Returns an associated Hotkey or an empty value. Use hotkeys.findHotkey() method.</div><div class="ttdef"><b>Definition:</b> Tool.h:33</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a7278925cff7d0da94e54f9bca201bda7"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a7278925cff7d0da94e54f9bca201bda7">pepr3d::Tool::drawToModelView</a></div><div class="ttdeci">virtual void drawToModelView(ModelView &amp;modelView)</div><div class="ttdoc">Called every frame on a currently active Tool. Draw to ModelView from inside this method.</div><div class="ttdef"><b>Definition:</b> Tool.h:52</div></div>
<div class="ttc" id="classpepr3d_1_1_main_application_html"><div class="ttname"><a href="classpepr3d_1_1_main_application.html">pepr3d::MainApplication</a></div><div class="ttdoc">The main Cinder-based application, represents a window, handles events, thread pool,...</div><div class="ttdef"><b>Definition:</b> MainApplication.h:38</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a139c1e72bd9eada36ce660e1fbf10c6b"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a139c1e72bd9eada36ce660e1fbf10c6b">pepr3d::Tool::onToolSelect</a></div><div class="ttdeci">virtual void onToolSelect(ModelView &amp;modelView)</div><div class="ttdoc">Called on a Tool right after user selects it. Note: It may also be called when a user selects the sam...</div><div class="ttdef"><b>Definition:</b> Tool.h:72</div></div>
<div class="ttc" id="classpepr3d_1_1_side_pane_html"><div class="ttname"><a href="classpepr3d_1_1_side_pane.html">pepr3d::SidePane</a></div><div class="ttdoc">Right side of the user interface that displays options of the currently selected tool.</div><div class="ttdef"><b>Definition:</b> SidePane.h:13</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_a5706faac1c122203317c60b3eb231d1a"><div class="ttname"><a href="classpepr3d_1_1_tool.html#a5706faac1c122203317c60b3eb231d1a">pepr3d::Tool::getName</a></div><div class="ttdeci">virtual std::string getName() const =0</div><div class="ttdoc">Returns a short name, displayed e.g., in a side pane and tooltip.</div></div>
<div class="ttc" id="classpepr3d_1_1_tool_html_aaa49ecd05152b869571601c7741fc5ca"><div class="ttname"><a href="classpepr3d_1_1_tool.html#aaa49ecd05152b869571601c7741fc5ca">pepr3d::Tool::onModelViewMouseDown</a></div><div class="ttdeci">virtual void onModelViewMouseDown(ModelView &amp;modelView, ci::app::MouseEvent event)</div><div class="ttdoc">Called on a currently active Tool when users presses a mouse button over a ModelView.</div><div class="ttdef"><b>Definition:</b> Tool.h:55</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_1563a38af0d3a5e4a6330d6d45e9792a.html">tools</a></li><li class="navelem"><b>Tool.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
